home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / infoserv / www / cern / proxy-support / Mosaic-2.4 / HTTP.c.patch.Z / HTTP.c.patch
Encoding:
Text File  |  1994-05-11  |  1.5 KB  |  46 lines

  1. *** HTTP.c.ORIG    Thu May 12 13:25:33 1994
  2. --- HTTP.c    Thu May 12 13:34:09 1994
  3. ***************
  4. *** 40,46 ****
  5.   char *post_data = NULL;
  6.   extern BOOL using_gateway;    /* are we using an HTTP gateway? */
  7.   extern BOOL using_proxy;      /* are we using an HTTP proxy gateway? */
  8.   
  9.   /*        Load Document from HTTP Server            HTLoadHTTP()
  10.   **        ==============================
  11. --- 40,46 ----
  12.   char *post_data = NULL;
  13.   extern BOOL using_gateway;    /* are we using an HTTP gateway? */
  14.   extern BOOL using_proxy;      /* are we using an HTTP proxy gateway? */
  15. ! PUBLIC BOOL reloading = NO;   /* reloading => send no-cache pragma to proxy */
  16.   
  17.   /*        Load Document from HTTP Server            HTLoadHTTP()
  18.   **        ==============================
  19. ***************
  20. *** 195,201 ****
  21.                 StrAllocCat(command, line);
  22.               }
  23.           }
  24. !       
  25.         sprintf(line, "User-Agent:  %s/%s  libwww/%s%c%c",
  26.                 HTAppName ? HTAppName : "unknown",
  27.                 HTAppVersion ? HTAppVersion : "0.0",
  28. --- 195,210 ----
  29.                 StrAllocCat(command, line);
  30.               }
  31.           }
  32. !       /*
  33. !        * When reloading give no-cache pragma to proxy server to make
  34. !        * it refresh its cache. -- Ari L. <luotonen@dxcern.cern.ch>
  35. !        */
  36. !       if (reloading) {
  37. !       sprintf(line, "Pragma: no-cache%c%c", CR, LF);
  38. !       StrAllocCat(command, line);
  39. !       }
  40.         sprintf(line, "User-Agent:  %s/%s  libwww/%s%c%c",
  41.                 HTAppName ? HTAppName : "unknown",
  42.                 HTAppVersion ? HTAppVersion : "0.0",
  43.